/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class VOCDetector {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010020052';
    }

    get categoryName() {
        return '\u0056\u004f\u0043\u68c0\u6d4b\u4eea';
    }

    getVocState(params) {
        return command({
            method: 'getVocState',
            methodId: 'peHyqShU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getVocValue(params) {
        return command({
            method: 'getVocValue',
            methodId: 'ppAXiV0C',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default VOCDetector;
